package com.ITArmy.controller.admin;

import com.ITArmy.common.ServerResponse;
import com.ITArmy.controller.base.BaseController;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

@Controller
@Api(value = "config接口", tags = "config接口")
@RequestMapping("/adminConfig")
public class AdminConfig extends BaseController {
    @RequestMapping("/uploadIndexPicture")
    public ServerResponse uploadIndexPicture(int configId, int location, MultipartFile picture, HttpServletRequest request) {
        return configService.uploadIndexPicture(configId, location, picture, request);
    }

}
